<?php

    function UnitTableRowEdit( tStringArray $oldvalues, tStringArray $newvalues, tCoalaPointer $row ) {
        global $table;

        $oldvalues = $oldvalues->Get();
        $newvalues = $newvalues->Get();

        $table->UpdateRow( $oldvalues, $newvalues );

        ob_start();
        Element( 'table/browse/field', array_shift( $newvalues ), true );
        foreach ( $newvalues as $field ) {
            Element( 'table/browse/field', $field, false );
        }

        $html = ob_get_clean();

        echo $row;
        ?>.innerHTML = <?php
        echo w_json_encode( $html );
        ?>;<?php
    }

?>
